Skip to content

Editor writing fixes - #261

Merged
alecmocatta merged 2 commits into
mainfrom
am
Jul 2, 2026
Merged

Editor writing fixes#261
alecmocatta merged 2 commits into
mainfrom
am

Conversation

@alecmocatta

@alecmocatta alecmocatta commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #221 fixes #258.

Prevent markdown autosave echoes from overwriting newer local editor state by tagging each editor-originated Lix write with an originKey and teaching the markdown observer to ignore same-origin changes.

This adds per-write origin tracking to Lix and uses it in Flashtype’s markdown editor autosave flow. Markdown file writes are stamped with a stable editor-instance origin, exposed through lix_change/history surfaces, and observed alongside file data. The editor now treats same-origin observations as local echoes, applies external changes only when clean, and preserves dirty local edits when different-origin changes arrive.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
flashtype-website d43426d Commit Preview URL

Branch Preview URL
Jul 02 2026, 12:59 AM

@alecmocatta
alecmocatta merged commit 43c2a35 into main Jul 2, 2026
4 checks passed
@alecmocatta
alecmocatta deleted the am branch July 2, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor randomly jumps to final character while editing markdown Flickering and dropped keystrokes when typing for the first time after opening a file

1 participant